package com.jfvaldes.gwt.commons;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class GWTServiceWrapperController implements Controller {

	private RemoteServiceServlet service;
	
	public void setService(RemoteServiceServlet service) {
		this.service = service;
	}

	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		service.doPost(request, response);
		return null;
	}

}
